package com.xhj.client;

import com.xhj.vo.CourseInfoForm;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "service-edu",fallback = CourseClientImpl.class)
public interface CourseClient {

    @RequestMapping("/EduAdmin/course/courseInfo/{id}")
    public com.xhj.vo.CourseInfoForm getCourseInfoVoById(
            @ApiParam(name = "id", value = "课程Id", required = true)
            @PathVariable("id") String id);
}

@Component
class CourseClientImpl implements CourseClient{

    @Override
    public CourseInfoForm getCourseInfoVoById(String id) {
        return null;
    }
}